summaryrefslogtreecommitdiff
path: root/generic/lib/geometric/normalize.inc
blob: 423ff79fc4e24ea0e5f05c78ad74a6c2fc53a10d (plain)
1
2
3
_CLC_OVERLOAD _CLC_DEF __CLC_FLOATN normalize(__CLC_FLOATN p) {
  return p/length(p);
}