Advertisement
Guest User

Untitled

a guest
May 12th, 2020
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.04 KB | None | 0 0
  1. CL-USER> (macroexpand-dammit:macroexpand-dammit '(cffi:defcfun ("conjf" %conjf) complex-single-float
  2. (z :pointer)))
  3. (PROGN
  4. NIL
  5. (DEFUN %CONJF (Z)
  6. (LET ((SB-C:*ALIEN-STACK-POINTER* SB-C:*ALIEN-STACK-POINTER*))
  7. (LET ((#:VAR3
  8. (SB-ALIEN-INTERNALS:MAKE-LOCAL-ALIEN
  9. '#<SB-ALIEN-INTERNALS:LOCAL-ALIEN-INFO (forced to stack) (ARRAY
  10. (UNSIGNED
  11. 8)
  12. 8)>)))
  13. (SB-ALIEN-INTERNALS:NOTE-LOCAL-ALIEN-TYPE
  14. '#<SB-ALIEN-INTERNALS:LOCAL-ALIEN-INFO (forced to stack) (ARRAY
  15. (UNSIGNED 8)
  16. 8)>
  17. #:VAR3)
  18. (LET ((#:SIZE1 8)
  19. (CFFI::ARGUMENT-VALUES
  20. (ALIEN-SAP
  21. (SB-ALIEN-INTERNALS:LOCAL-ALIEN
  22. '#<SB-ALIEN-INTERNALS:LOCAL-ALIEN-INFO (forced to stack) (ARRAY
  23. (UNSIGNED
  24. 8)
  25. 8)>
  26. #:VAR3))))
  27. (DECLARE (IGNORABLE #:SIZE1))
  28. (LET ((SB-C:*ALIEN-STACK-POINTER* SB-C:*ALIEN-STACK-POINTER*))
  29. (LET ((#:VAR6
  30. (SB-ALIEN-INTERNALS:MAKE-LOCAL-ALIEN
  31. '#<SB-ALIEN-INTERNALS:LOCAL-ALIEN-INFO (forced to stack) (ARRAY
  32. (UNSIGNED
  33. 8)
  34. 8)>)))
  35. (SB-ALIEN-INTERNALS:NOTE-LOCAL-ALIEN-TYPE
  36. '#<SB-ALIEN-INTERNALS:LOCAL-ALIEN-INFO (forced to stack) (ARRAY
  37. (UNSIGNED
  38. 8)
  39. 8)>
  40. #:VAR6)
  41. (LET ((#:SIZE4 8)
  42. (CFFI::RESULT
  43. (ALIEN-SAP
  44. (SB-ALIEN-INTERNALS:LOCAL-ALIEN
  45. '#<SB-ALIEN-INTERNALS:LOCAL-ALIEN-INFO (forced to stack) (ARRAY
  46. (UNSIGNED
  47. 8)
  48. 8)>
  49. #:VAR6))))
  50. (DECLARE (IGNORABLE #:SIZE4))
  51. (PROGN
  52. (LET ((SB-C:*ALIEN-STACK-POINTER* SB-C:*ALIEN-STACK-POINTER*))
  53. (LET ((#:VAR9
  54. (SB-ALIEN-INTERNALS:MAKE-LOCAL-ALIEN
  55. '#<SB-ALIEN-INTERNALS:LOCAL-ALIEN-INFO (forced to stack) (ARRAY
  56. (UNSIGNED
  57. 8)
  58. 8)>)))
  59. (SB-ALIEN-INTERNALS:NOTE-LOCAL-ALIEN-TYPE
  60. '#<SB-ALIEN-INTERNALS:LOCAL-ALIEN-INFO (forced to stack) (ARRAY
  61. (UNSIGNED
  62. 8)
  63. 8)>
  64. #:VAR9)
  65. (LET ((#:SIZE7 8)
  66. (#:G0
  67. (ALIEN-SAP
  68. (SB-ALIEN-INTERNALS:LOCAL-ALIEN
  69. '#<SB-ALIEN-INTERNALS:LOCAL-ALIEN-INFO (forced to stack) (ARRAY
  70. (UNSIGNED
  71. 8)
  72. 8)>
  73. #:VAR9))))
  74. (DECLARE (IGNORABLE #:SIZE7))
  75. (CFFI:TRANSLATE-INTO-FOREIGN-MEMORY Z
  76. #<CFFI::FOREIGN-POINTER-TYPE :POINTER>
  77. #:G0)
  78. (LET ((#:PTR10 ;; **************************************************** #1
  79. (PROGN
  80. (BLOCK NIL
  81. (LET ((CFFI::ARG NIL)
  82. (#:LOOP-LIST-11 (LIST #:G0)))
  83. (DECLARE)
  84. (LET ((COUNT 0))
  85. (DECLARE (TYPE NUMBER COUNT))
  86. (TAGBODY
  87. (IF (ENDP #:LOOP-LIST-11)
  88. (GO SB-LOOP::END-LOOP))
  89. (SETQ CFFI::ARG (CAR #:LOOP-LIST-11))
  90. (SETQ #:LOOP-LIST-11
  91. (CDR #:LOOP-LIST-11))
  92. SB-LOOP::NEXT-LOOP
  93. (LET ((#:INDEX-TMP14 COUNT))
  94. (LET ((#:STORE12 CFFI::ARG))
  95. (LET ((#:VALUE15 #:STORE12))
  96. (SB-KERNEL:%SET-SAP-REF-SAP
  97. CFFI::ARGUMENT-VALUES
  98. (* #:INDEX-TMP14 8) #:VALUE15))
  99. #:STORE12))
  100. (IF (ENDP #:LOOP-LIST-11)
  101. (GO SB-LOOP::END-LOOP))
  102. (SETQ CFFI::ARG (CAR #:LOOP-LIST-11))
  103. (SETQ #:LOOP-LIST-11
  104. (CDR #:LOOP-LIST-11))
  105. (SETQ COUNT (1+ COUNT))
  106. (GO SB-LOOP::NEXT-LOOP)
  107. SB-LOOP::END-LOOP))))
  108. (LET ((CFFI::LIBFFI-CIF-CACHE
  109. (LOAD-TIME-VALUE
  110. (CONS 'CFFI::LIBFFI-CIF-CACHE NIL))))
  111. (LET ((CFFI::LIBFFI-CIF
  112. (LET ((#:G16
  113. (CDR CFFI::LIBFFI-CIF-CACHE)))
  114. (IF #:G16
  115. #:G16
  116. (SB-KERNEL:%RPLACD
  117. CFFI::LIBFFI-CIF-CACHE
  118. (CFFI::MAKE-LIBFFI-CIF "conjf"
  119. 'COMPLEX-SINGLE-FLOAT
  120. '(:POINTER)
  121. ':DEFAULT-ABI))))))
  122. (CFFI::LIBFFI/CALL CFFI::LIBFFI-CIF
  123. (CFFI:FOREIGN-SYMBOL-POINTER
  124. "conjf")
  125. CFFI::RESULT
  126. CFFI::ARGUMENT-VALUES)
  127. CFFI::RESULT)))))
  128. (COMPLEX (SB-SYS:SAP-REF-SINGLE #:PTR10 0) ;******************** #2
  129. (SB-SYS:SAP-REF-SINGLE #:PTR10 4)))))))))))))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement