17db96d56Sopenharmony_ci;
27db96d56Sopenharmony_ci; Copyright (c) 2008-2020 Stefan Krah. All rights reserved.
37db96d56Sopenharmony_ci;
47db96d56Sopenharmony_ci; Redistribution and use in source and binary forms, with or without
57db96d56Sopenharmony_ci; modification, are permitted provided that the following conditions
67db96d56Sopenharmony_ci; are met:
77db96d56Sopenharmony_ci;
87db96d56Sopenharmony_ci; 1. Redistributions of source code must retain the above copyright
97db96d56Sopenharmony_ci;    notice, this list of conditions and the following disclaimer.
107db96d56Sopenharmony_ci;
117db96d56Sopenharmony_ci; 2. Redistributions in binary form must reproduce the above copyright
127db96d56Sopenharmony_ci;    notice, this list of conditions and the following disclaimer in the
137db96d56Sopenharmony_ci;    documentation and/or other materials provided with the distribution.
147db96d56Sopenharmony_ci;
157db96d56Sopenharmony_ci; THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND
167db96d56Sopenharmony_ci; ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
177db96d56Sopenharmony_ci; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
187db96d56Sopenharmony_ci; ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
197db96d56Sopenharmony_ci; FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
207db96d56Sopenharmony_ci; DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
217db96d56Sopenharmony_ci; OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
227db96d56Sopenharmony_ci; HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
237db96d56Sopenharmony_ci; LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
247db96d56Sopenharmony_ci; OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
257db96d56Sopenharmony_ci; SUCH DAMAGE.
267db96d56Sopenharmony_ci;
277db96d56Sopenharmony_ci
287db96d56Sopenharmony_ci
297db96d56Sopenharmony_ciPUBLIC    _mpd_div_words
307db96d56Sopenharmony_ci_TEXT    SEGMENT
317db96d56Sopenharmony_ciq$ = 8
327db96d56Sopenharmony_cir$ = 16
337db96d56Sopenharmony_cihi$ = 24
347db96d56Sopenharmony_cilo$ = 32
357db96d56Sopenharmony_cid$ = 40
367db96d56Sopenharmony_ci_mpd_div_words PROC
377db96d56Sopenharmony_ci    mov    r10, rdx
387db96d56Sopenharmony_ci    mov    rdx, r8
397db96d56Sopenharmony_ci    mov    rax, r9
407db96d56Sopenharmony_ci    div    QWORD PTR d$[rsp]
417db96d56Sopenharmony_ci    mov    QWORD PTR [r10], rdx
427db96d56Sopenharmony_ci    mov    QWORD PTR [rcx], rax
437db96d56Sopenharmony_ci    ret    0
447db96d56Sopenharmony_ci_mpd_div_words ENDP
457db96d56Sopenharmony_ci_TEXT    ENDS
467db96d56Sopenharmony_ciEND
47