Home
last modified time | relevance | path

Searched refs:__asm__ (Results 1 – 25 of 62) sorted by relevance

123

/illumos-gate/usr/src/lib/libm/common/m9x/
H A Dfenv_inlines.h47 __asm__ __volatile__( in __fenv_getcwsw()
61 __asm__ __volatile__( in __fenv_setcwsw()
77 __asm__ __volatile__("stmxcsr %0" : "=m" (*value)); in __fenv_getmxcsr()
83 __asm__ __volatile__("ldmxcsr %0" : : "m" (*value)); in __fenv_setmxcsr()
91 __asm__ __volatile__("f2xm1" : "=t" (ret) : "0" (x) : "cc"); in f2xm1()
100 __asm__ __volatile__("fyl2x" in fyl2x()
117 __asm__ __volatile__("fptan" in fptan()
129 __asm__ __volatile__("fpatan" in fpatan()
139 __asm__ __volatile__("fxtract" : "+t" (x) : : "cc"); in fxtract()
146 __asm__ __volatile__("fprem1" : "+t" (div) : "u" (idend) : "cc"); in fprem1()
[all …]
/illumos-gate/usr/src/lib/libc/inc/
H A Dthr_inlines.h56 __asm__ __volatile__("movq %%fs:0, %0" : "=r" (__value)); in _curthread()
59 __asm__ __volatile__("movl %%gs:0, %0" : "=r" (__value)); in _curthread()
61 register ulwp_t *__value __asm__("g7"); in _curthread()
72 __asm__ __volatile__( in __curthread()
94 register greg_t __value __asm__("rsp"); in stkptr()
96 register greg_t __value __asm__("esp"); in stkptr()
98 register greg_t __value __asm__("sp"); in stkptr()
110 __asm__ __volatile__( in set_lock_byte()
115 __asm__ __volatile__( in set_lock_byte()
129 __asm__ __volatile__( in atomic_swap_32()
[all …]
H A Dbase_inlines.h48 __asm__ __volatile__( in __mul_set()
68 __asm__ __volatile__( in __div_set()
86 __asm__ __volatile__( in __dabs()
108 __asm__ __volatile__( in __get_ieee_flags()
125 __asm__ __volatile__( in __set_ieee_flags()
/illumos-gate/usr/src/lib/libm/i386/src/
H A Dlibm_inlines.h52 __asm__ __volatile__("fsqrt\n\t" : "=t" (ret) : "0" (a) : "cc"); in __inline_sqrt()
67 __asm__ __volatile__("fsqrt\n\t" : "=t" (ret) : "0" (a) : "cc"); in __inline_sqrtf()
74 __asm__ __volatile__( in __inline_rint()
99 __asm__ __volatile__("fstcw %0\n\t" : "=m" (cw)); in __swapRP()
104 __asm__ __volatile__("fldcw %0\n\t" : : "m" (cw)); in __swapRP()
121 __asm__ __volatile__("fstcw %0\n\t" : "=m" (cw)); in __swap87RD()
126 __asm__ __volatile__("fldcw %0\n\t" : : "m" (cw)); in __swap87RD()
150 __asm__ __volatile__("frndint" : "+t" (d) : : "cc"); in ceil()
161 __asm__ __volatile__( in copysign()
175 __asm__ __volatile__("fabs\n\t" : "+t" (d) : : "cc"); in fabs()
[all …]
/illumos-gate/usr/src/uts/intel/asm/
H A Dcpu.h45 __asm__ __volatile__( in ht_pause()
60 __asm__( in prefetch_read_many()
72 __asm__( in prefetch_read_once()
84 __asm__( in prefetch_write_many()
96 __asm__( in prefetch_write_once()
109 __asm__ __volatile__( in cli()
116 __asm__ __volatile__( in sti()
129 __asm__ __volatile__( in i86_halt()
142 __asm__ __volatile__( in __set_ds()
151 __asm__ __volatile__( in __set_es()
[all …]
H A Dbyteorder.h52 __asm__("xchgb %h0, %b0" : "+Q" (value)); in htons()
54 __asm__("xchgb %h0, %b0" : "+q" (value)); in htons()
63 __asm__("xchgb %h0, %b0" : "+Q" (value)); in ntohs()
65 __asm__("xchgb %h0, %b0" : "+q" (value)); in ntohs()
73 __asm__("bswap %0" : "+r" (value)); in htonl()
80 __asm__("bswap %0" : "+r" (value)); in ntohl()
88 __asm__("bswapq %0" : "+r" (value)); in htonll()
95 __asm__("bswapq %0" : "+r" (value)); in ntohll()
H A Dsunddi.h47 __asm__ __volatile__( in inb()
60 __asm__ __volatile__( in inw()
73 __asm__ __volatile__( in inl()
85 __asm__ __volatile__( in outb()
96 __asm__ __volatile__( in outw()
107 __asm__ __volatile__( in outl()
118 __asm__ __volatile__("nop"); in sync_instruction_memory()
H A Dmmu.h47 __asm__ __volatile__( in getcr3()
56 __asm__ __volatile__( in setcr3()
67 __asm__ __volatile__( in getcr4()
76 __asm__ __volatile__( in setcr4()
96 __asm__ __volatile__( in invpcid_insn()
108 __asm__ __volatile__( in mmu_invlpg()
H A Dhtable.h49 __asm__ __volatile__( in atomic_orb()
59 __asm__ __volatile__( in atomic_andb()
69 __asm__ __volatile__( in atomic_inc16()
79 __asm__ __volatile__( in atomic_dec16()
H A Datomic.h84 __asm__ __volatile__( \
115 __asm__ __volatile__( \
141 __asm__ __volatile__( in atomic_add_ptr()
173 __asm__ __volatile__( \
203 __asm__ __volatile__( in atomic_cas_ptr()
216 __asm__ __volatile__( \
243 __asm__ __volatile__( in atomic_swap_ptr()
H A Dclock.h44 __asm__ __volatile__( in unlock_hres_lock()
59 __asm__ __volatile__( in __rdtsc_insn()
66 __asm__ __volatile__( in __rdtsc_insn()
H A Dbitmap.h54 __asm__( in highbit()
70 __asm__( in lowbit()
85 __asm__ __volatile__( in atomic_btr32()
/illumos-gate/usr/src/lib/libm/amd64/src/
H A Dlibm_inlines.h51 __asm__ __volatile__("sqrtss %1, %0\n\t" : "=x" (ret) : "x" (a)); in __inline_sqrtf()
60 __asm__ __volatile__("sqrtsd %1, %0\n\t" : "=x" (ret) : "x" (a)); in __inline_sqrt()
82 __asm__ __volatile__("fstcw %0\n\t" : "=m" (cw)); in __swapRP()
87 __asm__ __volatile__("fldcw %0\n\t" : : "m" (cw)); in __swapRP()
104 __asm__ __volatile__("fstcw %0\n\t" : "=m" (cw)); in __swap87RD()
109 __asm__ __volatile__("fldcw %0\n\t" : : "m" (cw)); in __swap87RD()
118 __asm__ __volatile__( in abs()
133 __asm__ __volatile__( in copysign()
149 __asm__ __volatile__( in fabs()
161 __asm__ __volatile__( in fabsf()
[all …]
/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Dcpu.h113 __asm__("cpuid" in cpuid()
128 __asm__("cpuid" in cpuid_eax()
138 __asm__("cpuid" in cpuid_ebx()
148 __asm__("cpuid" in cpuid_ecx()
158 __asm__("cpuid" in cpuid_edx()
194 __asm__ __volatile__("rdmsr" \
199 __asm__ __volatile__("wrmsr" \
206 __asm__( \
212 __asm__("movl %0,%%cr0": :"r" (x));
216 __asm__( \
[all …]
H A Dpci_io.c87 __asm__ __volatile__("pushfl ; popl %0":"=g" (x): /* no input */ :"memory")
89 #define cli() __asm__ __volatile__ ("cli": : :"memory")
92 __asm__ __volatile__("pushl %0 ; popfl": /* no output */ :"g" (x):"memory")
116 __asm__( in bios32_service()
152 __asm__( in pcibios_read_config_byte()
179 __asm__( in pcibios_read_config_word()
206 __asm__( in pcibios_read_config_dword()
233 __asm__( in pcibios_write_config_byte()
260 __asm__( in pcibios_write_config_word()
287 __asm__( in pcibios_write_config_dword()
[all …]
H A Dio.h66 #define __SLOW_DOWN_IO __asm__ __volatile__("jmp 1f\n1:\tjmp 1f\n1:")
68 #define __SLOW_DOWN_IO __asm__ __volatile__("outb %al,$0x80")
112 #define mb() __asm__ __volatile__ ("lock; addl $0,0(%%esp)": : :"memory")
127 __asm__ __volatile__ ("out" #s " %" s1 "0,%" s2 "1"
141 __asm__ __volatile__ ("in" #s " %" s2 "1,%" s1 "0"
153 { __asm__ __volatile__ ("cld ; rep ; ins" #s \
160 { __asm__ __volatile__ ("cld ; rep ; outs" #s \
H A Di386_timer.c72 __asm__ __volatile__("rdtsc" : "=a" (low), "=d" (high))
75 __asm__ __volatile__ ("rdtsc" : "=A" (val))
106 __asm__("subl %2,%0\n\t" in calibrate_tsc()
147 __asm__("divl %1" in currticks()
/illumos-gate/usr/src/common/crypto/edonr/
H A Dedonr_byteorder.h86 __asm__("ldbrx %0,0,%1" : "=r"(d64) : "r"(s64))
88 __asm__ volatile("stdbrx %1,0,%0" : : "r"(d64), "r"(s64))
94 __asm__("addi %0,%3,4;lwbrx %1,0,%3;lwbrx %2,0,%0;rldimi %1,%2,32,0"\
102 __asm__ volatile("addi %0,%3,4;stwbrx %1,0,%3;stwbrx %2,0,%0" \
110 __asm__("addi %0,%3,4;lwbrx %1,0,%3;lwbrx %2,0,%0" \
119 __asm__ volatile("addi %0,%3,4;stwbrx %1,0,%3;stwbrx %2,0,%0" \
124 __asm__("lwbrx %0,0,%1" : "=r"(d32) : "r"(s32))
126 __asm__ volatile("stwbrx %1,0,%0" : : "r"(d32), "r"(s32))
142 __asm__("ldxa [%1]0x88,%0" : "=r"(d64) : "r"(s64))
144 __asm__ volatile("stxa %0,[%1]0x88" : : "r"(s64), "r"(d64))
[all …]
/illumos-gate/usr/src/lib/libm/sparc/src/
H A Dlibm_inlines.h48 __asm__ __volatile__("fsqrtd %1,%0\n\t" : "=e" (ret) : "e" (d)); in __inline_sqrt()
57 __asm__ __volatile__("fsqrts %1,%0\n\t" : "=f" (ret) : "f" (f)); in __inline_sqrtf()
68 __asm__ __volatile__( in fp_classf()
121 __asm__ __volatile__( in fp_class()
179 __asm__ __volatile__( in __swapEX()
217 __asm__ __volatile__( in __swapRD()
245 __asm__ __volatile__( in __swapTE()
284 __asm__ __volatile__("fabsd %1,%0\n\t" : "=e" (ret) : "e" (d)); in fabs()
293 __asm__ __volatile__("fabss %1,%0\n\t" : "=f" (ret) : "f" (f)); in fabsf()
/illumos-gate/usr/src/lib/libm/sparcv9/src/
H A Dlibm_inlines.h50 __asm__ __volatile__( in fp_classf()
100 __asm__ __volatile__( in fp_class()
150 __asm__ __volatile__("fsqrts %1,%0\n\t" : "=f" (ret) : "f" (f)); in __inline_sqrtf()
159 __asm__ __volatile__("fsqrtd %1,%0\n\t" : "=f" (ret) : "f" (d)); in __inline_sqrt()
170 __asm__ __volatile__( in __swapEX()
208 __asm__ __volatile__( in __swapRD()
237 __asm__ __volatile__( in __swapTE()
277 __asm__ __volatile__("fabsd %1,%0\n\t" : "=e" (ret) : "e" (d)); in fabs()
286 __asm__ __volatile__("fabss %1,%0\n\t" : "=f" (ret) : "f" (f)); in fabsf()
/illumos-gate/usr/src/boot/sys/sys/
H A Dcdefs.h565 __asm__(".weak " #alias); \
566 __asm__(".equ " #alias ", " #sym)
568 __asm__(".section .gnu.warning." #sym); \
569 __asm__(".asciz \"" msg "\""); \
570 __asm__(".previous")
572 __asm__(".symver " #impl ", " #sym "@" #verid)
574 __asm__(".symver " #impl ", " #sym "@@" #verid)
577 __asm__(".weak alias"); \
578 __asm__(".equ alias, sym")
580 __asm__(".section .gnu.warning.sym"); \
[all …]
/illumos-gate/usr/src/test/os-tests/tests/i386/
H A Dbadseg_exec.c35 __asm__ volatile("movw %0, %%ds" : : "r" (selector)); in badds()
40 __asm__ volatile("movw %0, %%es" : : "r" (selector)); in bades()
45 __asm__ volatile("movw %0, %%fs" : : "r" (selector)); in badfs()
50 __asm__ volatile("movw %0, %%gs" : : "r" (selector)); in badgs()
55 __asm__ volatile("movw %0, %%ss" : : "r" (selector)); in badss()
/illumos-gate/usr/src/uts/sparc/asm/
H A Dcpu.h43 __asm__ __volatile__( in prefetch_read_many()
56 __asm__ __volatile__( in prefetch_read_once()
69 __asm__ __volatile__( in prefetch_write_many()
82 __asm__ __volatile__( in prefetch_write_once()
H A Dthread.h47 __asm__ __volatile__( in threadp()
63 __asm__ __volatile__( in caller()
78 __asm__ __volatile__( in callee()
/illumos-gate/usr/src/test/os-tests/tests/xsave/
H A Dfpregs_xbv.c49 __asm__ __volatile__ ("movdqu %0, %%xmm0" : : "m" (u)); in main()
50 __asm__ __volatile__ ("fldl %0" : : "m" (u)); in main()
66 __asm__ __volatile__ ("fninit" : : :); in main()
67 __asm__ __volatile__ ("vzeroall" : : :); in main()

123