udiv.S 210 B

123456789101112131415
  1. /*
  2. * Sparc v9 has divide.
  3. * As divx takes 68 cycles and udiv only 37,
  4. * we use udiv eventhough it is deprecated.
  5. */
  6. .text
  7. .align 32
  8. ENTRY(.udiv)
  9. wr %g0, 0, %y
  10. retl
  11. udiv %o0, %o1, %o0
  12. END(.udiv)