File: a_livepatch1.cpp

package info (click to toggle)
libpulp 0.3.16-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,976 kB
  • sloc: ansic: 11,792; python: 1,216; sh: 881; makefile: 871; cpp: 582; asm: 387
file content (8 lines) | stat: -rw-r--r-- 141 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
#include <math.h>

typedef double vec3_t[3];

double norm3_lp(vec3_t v)
{
  return cbrt(v[0]*v[0]*v[0] + v[1]*v[1]*v[1] + v[2]*v[2]*v[2]);
}