align.go (166B)
1 package internal 2 3 // Align returns 'n' updated to 'alignment' boundary. 4 func Align(n, alignment int) int { 5 return (int(n) + alignment - 1) / alignment * alignment 6 }
gtsocial-umbxUnnamed repository; edit this file 'description' to name the repository. | |
Log | Files | Refs | README | LICENSE |